package com.gitee.feizns.zxw.domain.pojo;

import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.util.Date;
import java.io.Serializable;

import com.gitee.feizns.bean.Convertible;
import com.gitee.feizns.web.dao.ar.AbstractModel;
import com.gitee.feizns.web.dao.handler.meta.annotation.Now;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 后台管理员
 * @author feizns
 * @since  2019/09/09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UsersAdmin extends AbstractModel<UsersAdmin> implements Serializable, Convertible {

    private static final long serialVersionUID = 6877333961L;

    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 菜单
     */
    private java.util.List menus;

    /**
     * 创建时间
     */
    @Now
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

}
